package controller.library
{
	import events.library.EventSetLibraryItemProperty;
	
	import model.ModelProject;
	
	import org.flashIso.engine.library.objects.LBase;
	import org.robotlegs.mvcs.Command;
	
	import others.Util;
	
	public class CommandSetLibraryItemProperty extends Command
	{
		[Inject]
		public var event:EventSetLibraryItemProperty;
		
		[Inject]
		public var mp:ModelProject;
		
		override public function execute() : void {
			mp.projectModified = true;

			Util.setCascadePropery(event.item, event.property, event.value);
		}
	}
}